//
//  HRSoundViewController.swift
//  XMLA
//
//  Created by Gao on 17/2/16.
//  Copyright © 2017年 Odm. All rights reserved.
//

import UIKit
import WMPageController

class HRSoundViewController: WMPageController {
    
    // 创建一个单例
    
    class func soundViewController() ->  HRSoundViewController{
        let downloadVC: HRSoundViewController? = nil
//        /* TODO: move below code to the static variable initializer (dispatch_once is deprecated) */
//        ({() -> Void in
//            downloadVC = HRSoundViewController(self.viewControllerClasses(), andTheirTitles: ["关注", "收藏", "历史"])
//            //        WMPageController的设置
//            downloadVC?.menuViewStyle = WMMenuViewStyleLine
//            // 设置背景色
//            downloadVC?.menuBGColor = UIColor.white
//            // 选中时颜色
//            downloadVC?.titleColorSelected = UIColor.red
//            // 设置每个item的宽
//            downloadVC?.itemsWidths = [(kWindowW / 3), (kWindowW / 3), (kWindowW / 3)]
//            downloadVC?.progressHeight = 3.5
//            downloadVC?.menuHeight = 45
//            downloadVC?.viewFrame = CGRect(x: CGFloat(0), y: CGFloat(20), width: CGFloat(kWindowW), height: CGFloat(kWindowH - 20))
//        })()
        return downloadVC!
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
